<!-- подписчики -->
<div class="u_cat clearfix">
	<div class="u_cat_head_strip"></div>
	<div class="u_cat_head">
		<a href="<?php echo Yii::app()->createUrl('event/viewMembers', array('event'=>$model->id)); ?>">
			<em>участники</em><span><?php echo CHtml::encode($model->countSubscribers); ?></span>
		</a>
	</div>
	<div class="u_cat_list ajaxLink">
		<?php if($model->countSubscribers > 0) : ?>
			<?php foreach ($model->subscribersUsers as $key => $subscriber) : ?>
				<div class="u_friend">
					<a href="<?php echo $this->createUrl('profile/index',array('id' => $subscriber->id)); ?>" class="u_friend_pic">
						<?php if($subscriber->avatar_info){ ?>
							<?php echo $this->material_image('', $subscriber->avatar_info->name, '50', 'photos/'. $subscriber->id . '/' . 0); ?>
						<?php }else{ ?>
							<?php echo $this->material_image('', 'noimage.gif', '50', ''); ?>
						<?php } ?>							
					</a>
					<?php // имя подписчика
						echo CHtml::link( 
							CHtml::encode($subscriber->full_name),
							$this->createUrl('profile/index',array('id' => $subscriber->id))
						);
					?>
				</div>
			<?php endforeach; ?>
		<?php endif; ?>
	</div>
</div>

<!-- организатор -->
<div class="u_cat ajaxLinks">
	<div class="u_cat_head_strip"></div>
	<div class="u_cat_head">
		<a href="<?php echo Yii::app()->createUrl('event/viewContacts', array('event'=>$model->id)); ?>">
			<em>организатор</em><span>1</span>
		</a>
	</div>
	<div class="u_cont_list">
			
				<div class="u_cont">
					<a href="<?php echo $this->createUrl('groups/view',array('group' => $model->group->id)); ?>" class="u_cont_pic">
						<?php // аватар подписчика
							// echo $this->material_image(
							// 	$model->group->id, 
							// 	$model->group->avatar, 
							// 	'40', 
							// 	'groups/'. $model->group->id
							// ); 
						?>
						<?php echo $this->material_image(0, $model->group->avatar_info->name, '40', 'groups/'. $model->group->id . '/' . 0); ?>
					</a>
					<div class="u_cont_r">
						<?php // даные контакта
							echo CHtml::link( 
								CHtml::encode($model->group->name),
								$this->createUrl('groups/view',array('group' => $model->group->id))
							);
						?>
						<p class="u_cont_black">
							<?php //if($contacts[$key]->admin) echo 'Администратор'; ?>
							
						</p>
						<p class="u_cont_grey">
							<?php //if($contacts[$key]->position) echo CHtml::encode($contacts[$key]->position); ?>
						</p>
					</div>
				</div>

	</div>
</div>